<template>
  <div class="about">
    <el-row :gutter="20">
      <el-col>首页</el-col>
    </el-row>
     <el-row :gutter="20">
       <el-col :span="12">
         <el-card>  </el-card>  
       </el-col>
       <el-col :span="12">  
       </el-col>
    </el-row>
    <el-row :gutter="20">
      <el-col>
        <lmsTable :tableData='table.tableData' :tableConfig='table.tableConfig'/>
      </el-col>
    </el-row>
  </div>
</template>
<script>
import lmsTable from '@/components/lmsTable'
export default {
  data(){
    return{
      table:{
        tableData:{
          data:[
           {
             name:'某某实验室1',
             director:'王工',
             tel:"15188888888",
             adress:"深圳市宝安区宝安大道100号",
             account:"012345",
             password:"12345",
             ifDisabled:"启用",
             createDate:"2021.04.10 10:10:00"
           }
          ]
        },
        tableConfig:{
          showIndex:true,
          columns:[
            {
              fieldName:'name',
              label:"名称"
            },
            {
              fieldName:'director',
              label:"负责人"
            },
            {
              fieldName:'tel',
              label:"联系方式"
            },
            {
              fieldName:'adress',
              label:"地址"
            },
            {
              fieldName:'account',
              label:"账号"
            },
            {
              fieldName:'password',
              label:"密码"
            },
            {
              fieldName:'ifDisabled',
              label:"禁用/启用"
            },
            {
              fieldName:'createDate',
              label:"创建时间"
            },
           {
              label:"操作",
              type:'handle',
              buttons:[
                {
                  label:'查看',
                  func:()=>{

                  }
                },
                {
                  label:'编辑',
                  func:()=>{
                    
                  }
                },
                {
                  label:'删除',
                  func:()=>{
                    
                  },
                  isDel:true
                }
              ]
           }
          ]
        }
      }
    }
  },
  components:{
    lmsTable
  }
}
</script>
<style lang="scss" scoped>
 .el-row {
    margin-bottom: 20px;
    &:last-child {
      margin-bottom: 0;
    }
  }
</style>